package com.jeespring.common.dto;

import java.io.Serializable;

/**
 * @Title: Result
 * @Description:
 * @Author 张朝阳
 * @Date 2019/5/8 22:55
 */
public class Result<T> implements Serializable {

    private boolean success;

    private String message;

    private int code ;

    private T data;

    public Result(boolean success, String message) {
        super();
        this.success=success;
        this.message = message;
    }

    public Result(int code) {
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public static Result success(){
        return new Result(200);
    }
}
